#include <stdio.h>

int main()
{
    int data = 0x11ff3344;

    char*p = (char*)&data;// char* = int*

    unsigned char b = *(p+2);

    printf("%x\n", (unsigned char)*(p+2));// ff  ==> int
    printf("%x\n", (unsigned char)p[2]);
    printf("%x\n", (data >> 16)&0xff);

}

